<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script src="../vue.js">
    </script>

<div id="app">
 
    <cpn>

        <button slot="test2">第二个插槽</button>
        <button slot="test1">第一个插槽</button>

        
    </cpn>

</div>


<template id="cpn">
    <div>
        <h1>测试</h1>
        <slot name="test1"></slot>
        <slot name="test2"></slot>
        <slot></slot>
    </div>

</template>

<script>
    const app = new new Vue({
        el:'.app',
        component:{
            template:'#cpn'
        }
    })
</script>
</body>
</html>